<template>
  <el-card class="page-container">
    <template #header>
      <div class="card-header">
        <span>公告管理</span>
        <div class="extra">
            <el-button type="primary">添加分类</el-button>
        </div>
      </div>
    </template>
    <p v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</p>
    <template #footer>Footer content</template>
  </el-card>
</template>
  
<script setup>
import { noticeListRequest } from '@/api/notice';
import { ref } from 'vue';

const noticeList = ref([]);

  function loadList() {
    noticeListRequest().then(r => {
      console.log(r.data);
      noticeList.value = r.data;
    });
  } 
  loadList();
</script>
  
<style lang="scss" scoped>
  .page-container {
    min-height: 100%;
    box-sizing: border-box;
    .card-header {
        display: flex;
        justify-content: space-between;
}
  }
</style>